package com.google.code.msgbooster.core;

import javax.jdo.PersistenceManager;

import org.springframework.web.context.WebApplicationContext;

public final class Service extends VO {

	private static final long serialVersionUID = -7459622495695226305L;
	
	private static PersistenceManager persistenceManager;
	
	private static WebApplicationContext context;

	public static PersistenceManager getPersistenceManager() {
		return persistenceManager;
	}

	public static void setPersistenceManager(
			PersistenceManager persistenceManager) {
		Service.persistenceManager = persistenceManager;
	}
	
	public static Object getBean(String name){
		return context.getBean(name);
	}

	public static void setContext(WebApplicationContext context) {
		Service.context = context;
	}

}
